export default [
  {
    path: '/',
    name: 'root',
    component: function (resolve) {
      require(['../admin.vue'], resolve);
    },
    children:[
      /* 首页 */
      {
        path: '/',
        name: 'index',
        component: function (resolve) {
          require(['../components/index/index.vue'], resolve);
        },
        children:[
        /*  {
            path: '/',
            name: 'home',
            component: function (resolve) {
              require(['../components/home/index.vue'], resolve);
            }
          },*/

          {
            path: '/friendlink',
            name: 'friendlink',
            component: function (resolve) {
              require(['../components/friendlink/index.vue'], resolve);
            }
          },
          {
            path: '/resourceinfo',
            name: 'resourceinfo',
            component: function (resolve) {
              require(['../components/resourceinfo/index.vue'], resolve);
            }
          },

          /* markdown */
          {
            path: '/',
            name: 'markdown',
            component: function (resolve) {
              require(['../components/markdown/markdown.vue'], resolve);
            }
          }
        ]
      },
      /* 登录 */
      {
        path: '/login',
        name: 'login',
        component: function (resolve) {
          require(['../components/login/Login.vue'], resolve);
        }
      },
    ]
  }
]
